MAXScript Operator 

image165.gif

The MAXScript Operator is able to execute MAXScript code based on any condition or rule created by an action of the particle system.

MAXScript is the powerful programming language for all 3ds Max users. It is tightly integrated into the core application and offers nearly all the features of any other programming language.

Operator Inputs 

ON - (Bool) This input data stream determines whether the operator is considered 'on' or 'off'. You can connect other operators to this input channel such as a Bool Helper to activate/deactivate the whole operator. Be aware that you can have code run when both True and False states are received by the ON input data stream.

Operator Outputs 

No Operator Outputs.

Rollout Menu 

image38.gif

The MAXScript Active code is executed when a True condition is set within the ON input data stream. You can directly type in or load any MAXScript code into the active text field you wish. However you do need to be careful. Test your scripts thoroughly before inserting them here. thinkingParticles does not check or verify the MAXScript code you type or load. If, for example, the code contains instructions to delete the hard drive, when a True condition is piped in, the MAXScript operator will delete it - no questions asked.

Likewise, the MAXScript Inactive code is executed when a False condition is set within the ON input data stream. You can directly type in or load any MAXScript code into the Inactive text field you wish. However you do need to be careful. Test your scripts thoroughly before inserting them here. thinkingParticles does not check or verify the MAXScript code you type or load. If, for example, the code contains instructions to delete the hard drive, when a False condition is piped in, the MAXScript operator will delete it - no questions asked.

Load
- Clicking on this button will bring up a dialog where you can choose MAXScript .MS files to be used within the operator.

MAXScript list
- These windows contain lists of loaded MAXScript .MS files and can be used to type in MAXScript code directly for use within the operator. The upper window contains the Active code (to be executed when ON = True), and the lower window contains the Inactive code (to be executed when ON = False).

Up / Down
- Clicking on these buttons will move the various MAXScript lines up or down, depending on which line is selected.

Remove
- Click the Remove button to delete a line of code or a loaded .MS file from the Active or Inactive lists.